//
//  OMOrderNOTableCell.m
//  OMENGO
//
//  Created by 梁尚嘉 on 2017/3/9.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMOrderNOTableCell.h"
#import "OMOrderDetailModel.h"
#import "OMOrder.h"
#import "OMOrderDetailAppearace.h"
@implementation OMOrderNOTableCell

- (void)configure
{
    [super configure];
    self.elementLabel.font = OMODA_Font;
    self.elementLabel.textColor = SM_blackColor;

    self.detailLabel.font = OMODA_Font;
    self.detailLabel.textColor = SM_redColor;

    [self.elementLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(OMODA_INSETS.left));
        make.centerY.equalTo(self.contentView.mas_centerY);
    }];

    [self.detailLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(@(-OMODA_INSETS.right));
        make.centerY.equalTo(self.contentView.mas_centerY);
    }];
}

- (void)configureCellWithObj:(OMOrder *)model
{
    self.elementLabel.text = [NSString stringWithFormat:@"订单号：%@",model.id];
    self.detailLabel.text = @"待支付";
}


+ (CGFloat)cellHeight
{
    return SM_SIZE(90);
}

@end
